


enum MaterialType{
  ssbj("三色笔记", 1),
  kkdg("考试大纲", 2),
  swdt("思维导图", 3),
  zsd("知识点", 4),
  mnzt("模拟真题", 5),
  kqbk("考前必看", 6),
  qt("其他资料", 6)
  ;



  final String desc;


  final int value;


   int getCode() {
    return value;
  }

  const MaterialType(this.desc, this.value);

  static MaterialType? getMaterialType(int value) {
    var values = MaterialType.values;
    for (var value in values) {
      if (value.value == value) {
        return value;
      }
    }
    return null;
  }
}